package org.example.myleet.p876;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(3 == solution.middleNode(Parser.parseLinkedList("[1,2,3,4,5]")).val);
        Assert.isTrue(1 == solution.middleNode(Parser.parseLinkedList("[1]")).val);
        Assert.isTrue(4 == solution.middleNode(Parser.parseLinkedList("[1,2,3,4,5,6]")).val);
    }
}
